<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:p="http://primefaces.org/ui">

    <body>
        <ui:composition>
            <h:form id="formAutocomplete">
                <p:autoComplete id="buscar" styleClass="searchBox" size="30" 
                                value="#{location_autoCompleteFind.selected}"
                                completeMethod="#{location_autoCompleteFind.autoComplete}"
                                var="p"
                                itemLabel=""
                                itemValue="#{p}" 
                                converter="location_autoCompleteFind">
                    <p:column style="width:80%">
                        #{p.generalBeans.nombre}
                    </p:column>
                    <p:ajax event="itemSelect" update=":personaActual :content"/>
                </p:autoComplete>

                <p:watermark for="buscar" value="#{autocompleteLabel.watermark}"/>

            </h:form>
        </ui:composition>
    </body>
</html>
